<template>
  <div class="dh">
    <m-header :title="title" :show="true"></m-header>
    <div class="content">
      <div>
        <img src="../../assets/2.jpg" class="img">
      </div>
      <!-- 卡片 -->
      <div>
        <!-- 图片 -->
        <div class="card">
          <img src="../../assets/3.jpg" class="card-img">
          <!-- 标题 -->
          <div class="card-con">
            <span class="title-one">双人房</span>
            <span class="title-two">帕劳酒店</span>
            <div class="con-one">可眺望一望无际的太平洋，酒店设施最齐全。</div>
            <div class="pric">
              <span>￥</span>
              <span class="pric-num">716</span>
              <span>起</span>
            </div>
            <div class="con-one">与天堂岛隔马路</div>
            <div class="con-bottom">
              <div class="bottom-left">五星级酒店</div>
              <div class="bottom-right" @click="openbuy">订</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import MHeader from "components/header/header";
export default {
  name: "hotel",
  components: {
    MHeader
  },
  data() {
    return {
      title: "酒店预订"
    };
  },
  methods: {
    openbuy() {
      this.$router.push("/buy");
    }
  }
};
</script>
<style lang="stylus" scoped>
.dh {
  width: 100%;
  height: 100%;
}

.content {
  padding-top: 100px;
}

.img {
  width: 750px;
  height: 280px;
}

.card {
  display: flex;
  position: relative;

  .card-img {
    width: 190px;
    height: 262px;
  }

  .card-con {
    flex: 1;
    margin-left: 12px;
    margin-right: 15px;

    .title-one {
      font-weight: bold;
      color: $color-text-l;
      font-size: 42px;
    }

    .title-two {
      font-weight: bold;
      color: $color-text-l;
      font-size: 25px;
    }

    .con-one {
      color: #969696;
      font-size: 25px;
      margin-top: 19px;
      width: 397px;
    }

    .pric {
      color: #FF7900;
      font-weight: bold;
      font-family: MicrosoftYaHeiLight;
      position: absolute;
      right: 11px;

      .pric-num {
        font-size: 10px;
        font-weight: bold;
      }
    }

    .con-bottom {
      display: flex;
      justify-content: space-between;

      .bottom-left {
        font-size: 25px;
        font-family: SimHei;
        font-weight: bold;
        color: #FF7900;
      }

      .bottom-right {
        width: 45px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        border: 1px solid #FF7900;
        border-radius: 10px;
        color: #ff7900;
      }
    }
  }
}
</style>
